package com.neusoft.yiyang.medical.client;

import com.neusoft.yiyang.common.entity.task.CareTask;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@FeignClient(name = "task-service")
public interface TaskClient {

    @PostMapping("/tasks/create")
    void createTask(@RequestBody CareTask careTask);

    @PostMapping("/tasks/deleteByCidAndMOId/{customerId}/{medicationOrderId}")
    void deleteMedicationTask(@PathVariable Integer customerId, @PathVariable Integer medicationOrderId);
}
